Conversation

Notices

  1. @maiyannah 

    1. This wasn't a regex, this was a bug in the exception code.
    2. You'll only be shooting yourself in the foot if you don't use lookbehinds and word boundaries for stuff like this.

    Saturday, 22-Apr-17 09:53:46 UTC from gs.kawa-kun.com
    1. @takecherryakenji I don't understand what would've caused an internal server error, especially only for local users. And I don't immediately see the practical change in the regex. You replaced the initial bit with a negative lookback for non-whitespace and then seemingly simplified the user-part (which is of course good and I think I'll copy).

      @takeappleakenji I've even replied to you, so I obviously don't block: https://gs.kawa-kun.com/notice/1556135

      Saturday, 22-Apr-17 10:06:39 UTC from social.umeahackerspace.se at 63°49'42"N 20°15'34"E
      1. @mmn 

        1. The internal server error is what was happening and this fixed it.  I can't explain it any more than that.

        2. There was a really nasty bug with the old regex that would cause any remote WebFingers to fail to be detected if there were any local @-mentions at the beginning of a notice, which resulted in a lot of complains from folks I follow.  I did a lot of testing with the old regex and the results didn't make sense, so I tossed out the first half of it and redid it.

        Redoing the first half has fixed remote WebFingers on several GS and pA instances, so you can't deny that the fix isn't doing its job.

        Saturday, 22-Apr-17 10:13:30 UTC from gs.kawa-kun.com
        1. @mmn It really seemed like # here had some positional aspects to it when I tested the old regex.  As in, the position of the remote WebFinger in the notice's content determined whether or not it would be detected during the parsing stage.  That's why it made no sense to me.

          Saturday, 22-Apr-17 10:16:00 UTC from gs.kawa-kun.com
          1. @mmn If you want to ask someone, @sim / @sim probably still remembers how she had trouble @-mentioning her bot due to the bug.

            Saturday, 22-Apr-17 10:20:04 UTC from gs.kawa-kun.com