Limnoria icon indicating copy to clipboard operation
Limnoria copied to clipboard

RSS allows adding announce multiple times

Open Mikaela opened this issue 10 years ago • 5 comments

2014-12-30 10:01:42+0200 <@Mikaela> %rss announce add viestintavirasto
2014-12-30 10:01:42+0200 <@Dysforia> The operation succeeded.
2014-12-30 10:01:45+0200 <@Mikaela> %flush
2014-12-30 10:01:46+0200 <@Dysforia> The operation succeeded.
2014-12-30 10:01:48+0200 <@Mikaela> %rss announce add viestintavirasto
2014-12-30 10:01:48+0200 <@Dysforia> The operation succeeded.
2014-12-30 10:01:55+0200 <@Mikaela> %rss announce list
2014-12-30 10:01:56+0200 <@Dysforia> hsseksuaalivahemmistot, viestintavirasto, hstranssukupuolisuus, iskelma, puhku, heka, amnestyfi, mikaelafi, kapsitiedotteet, sadekondelin, kapsi, ylepaa, kymensanomat, podkaista, linucast, queeborgtumblr, ylekymenlaakso, tietoturvanyt, ktkhaavoittuvuudet, tumblrmikaela, mtv3, hssukupuolet, normitnurin, ja afterdawn

Mikaela avatar Dec 30 '14 08:12 Mikaela

Feature request? :)

It should just say "already added" or something.

bw4518 avatar Jul 26 '15 16:07 bw4518

I don't get notifications about the labels, but I would say "bug".

Mikaela avatar Jul 26 '15 16:07 Mikaela

Borderline maybe, as it won't actually break or mess up anything by adding it multiple times. :)

bw4518 avatar Jul 26 '15 16:07 bw4518

GitHub allows multiple labels to be set on issues, so it could be both, but that could look a little funny.

Mikaela avatar Jul 26 '15 16:07 Mikaela

To elaborate some more: technically this is a minor bug because the actually announcements aren't duplicated or anything. Internally the config value for plugins.rss.announce actually uses a set, which automatically filters away duplicate items. So, the real issue is that Limnoria doesn't error if the new feed is already in the set, and returns success regardless of whether the feeds were actually (re)added or not.

jlu5 avatar Dec 10 '17 07:12 jlu5