6

You can follow devrant mentions with rss on https://static.molodetz.nl/dr.menti.... On my phone it looks like this and can even enable notification: https://devrant.molodetz.nl/preview...

It updates every 5 minutes.

Comments
  • 1
    How do you do that? You cannot possibly be scanning all rants and all comments. I guess it only works with the most recent rants?

    I could integrate this into JoyRant :)
  • 1
    Also can you make it json and more structured?
    Like separate sender and receiver fields so that it doesn’t need to be parsed from the title. And a machine readable date format. :)
    Essentially everything needed to be integrated into a devrant client.
  • 1
    @Lensflare already done, https://static.molodetz.nl/dr.menti... or https://static.molodetz.nl/mention..... I already did have it and is also updated every five minutes :)

    I cycle slowly trough all rants.
  • 1
    @whimsical you mean literally all rants? Holy cow!
  • 2
    So funny how many community driven solutions we apply to the ever growing list of failures in devrant :)

    This one is particularly hardcore! 😂
  • 1
    @whimsical the json data contains a lot of duplicates.
    I‘ll filter them out for now but you should check that :)
  • 1
    @Lensflare hmm, duplicates. At they not literally duplicates like you mentioning me two times now? I'll look at it tomorrow. I'm doubting to sleep on this couch or walk to bed. What a couch. Could do castings on it.
  • 1
    @whimsical no, I mean there are entries which have the exact same values for all of their fields.

    And they are repeated more than once and they are not directly adjacent to each other.
  • 2
    I have two questions(requests actually, I guess) if you feel bored enough to do it:
    1) I noticed the items in the RSS feed aren't sorted by date, and are SEMI-random, things that are more than half a day apart tend to be in order, but things that only a few hours apart seem to be in a random order(some before, some after), if it ain't hard, it would be appreciated if those could be sorted. Not critical though, because RSS apps already sort by date by default.
    2) Would be really nice if it there was also (either in the same file, or in a separate file) an RSS feed of "username posted a new rant".

    If either of those two is an easy fix and you have the time, that would be nice to have.
    Also thanks from and the rest of active devRant for shit like this that(or the image upload thingy) you do that helps keeping this platform alive and usable.
  • 2
    @SoldierOfCode aww, thanks. I will look in it today, duplication also mentioned by @Lensflare. But I don't know if I can add the "Add new rant" notifs in this rss because it maybe breaks @Lensflare system that depends on it. Maybe I could make extra rss. Will see how far I get :)
  • 2
    @whimsical Oh, btw, I just noticed the RSS feed only reports one mention. For example your messgse here was reported as "whimsical mentioned (at)SoldierOfCode" but does report that you also mentioned (at)Lensflare
  • 2
    @whimsical OHHH, I looked at the XML and THAT'S why there are "duplicates"! The XML file actually DOES show three different items for your message, one for "whimsical mentioned(at)SoldierOfCode" and two(because you mentioned him twice) for (at)Lensflare, but since all three have the same guid the RSS software sees them as one. That's probably the "duplicates" @Lensflare was seeing, in which case it's not duplicates and it works.

    Tho you should probablt treat the case where you mention the person more than once in the same message so it'd only generate one item per person.

    And for the guid's you could make it instead of `devrant-mention-19384527` be `devrant-mention-19384527-1` for example, and for each additional mention ++ the counter so second mention(in the same message) would be `devrant-mention-19384527-2` and continued
  • 3
    For example, this test message should generate four mentions: @whimsical @whimsical @whimsical @whimsical

    ('should' as in, I suspect it will, correctly it should only generate one)
  • 2
    @SoldierOfCode ah, makes it a bit more complex, but thanks for your research. I gonna eat and will fix it and thanks for the test data 😁 also, I'm never bored :p I see you guys as top priority 😁 after snek users :p
  • 1
Add Comment