Login
You're viewing the ruby.social public feed.

Replies

  • Aug 12, 2021, 8:37 AM
    However what you describe with !@ sounds very similar to what we do with !
    Well I knew about the friendica forums when I chose the Exclamation Mark syntax. This decision might come back to haunt me now ;-)

    Apart from that, tootgroup.py is not really comparable. It is a script that runs independently from the Mastodon or Pleroma Server and just connects as a normal ActivityPub client.

    I expect !@user@domain to be treated either as a regular mention with @, or as plaintext since the @ wouldn’t be prepended by non-text.
    It is mostly treated as plaintext. But the non-text before the @ is also not always required. ?@user@domain works but !@user@domain does not.

    Can you give me a pointer to where this is handled in the friendica source? I'll try to get to the bottom of this. Thanks!
    💬 0🔄 0⭐ 0
  • Aug 14, 2021, 10:20 PM
    Thank you, this is a good start. Trying to decipher Regex is not the easiest task, luckily there are online checkers that help.

    It does not seem that the "!" Problem is in the BBcode.php getTags method. But I might have found another Bug there. At least that is what I think if I read the comments correctly. I have created a pull request - please check it out.

    github.com/friendica/friendica…

    The integration build failed though, so I might be completely off. In that case, I'd like to hear more about why.


    On another note. To be able to continue in any meaningful way, I have to create a friendica development setup. Are there any tips or howtos in the forums or anywhere else. I could not find anything that would help me setting up a local dev instance with dummy data or something like it. And I'd rather not use my live friendica server for development ;-)
    💬 0🔄 0⭐ 0
  • Aug 16, 2021, 10:33 PM
    In that case, do you develop on the server too or how do you manage debugging?

    This is how it is... Just wanting to check out how I can make tootgroup.py work with friendica, and now I"m learning how to set-up remote debugging sessions. I'm not complaining! Just wondering how deep this rabbit hole goes ;-)

    Are there any other forum members who want to share their development setups with me and other interested readers? I'd be very thankful!
    💬 0🔄 0⭐ 0
  • Aug 12, 2021, 2:30 AM
    @andi The regular expression searching for mentions in post bodies expect one symbol, either @ or ! for accounts, or # for hashtags. I expect !@user@domain to be treated either as a regular mention with @, or as plaintext since the @ wouldn’t be prepended by non-text.

    However what you describe with !@ sounds very similar to what we do with !, namely have the forum reshare a message posted by someone like you just addressed the @developers forum.
    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Aug 15, 2021, 12:19 AM
    @andi The way I set up my development environment is I installed Friendica again on a separate subdomain on my hosted server. I don’t think we have any meaningful dummy data anymore. I know we have a Vagrant integration but I’ve never used it.
    💬 0🔄 0⭐ 0
  • Aug 16, 2021, 11:21 PM
    @andi I set up my IDE phpStorm to automatically update the corresponding remote file when I make changes, and I heavily use var_dump() for frontend code, and the Friendica log for backend code.
    💬 0🔄 0⭐ 0