MLTSHP / mltshp

Source for the application that runs mltshp.com
https://mltshp.com/
Mozilla Public License 2.0
50 stars 21 forks source link

Link to original files in mltshp rss #760

Closed dphiffer closed 5 months ago

dphiffer commented 6 months ago

A small "Best of MLTSHP" RSS feed enhancement re: #754

Before

<item>
<title> Why so sad, Netscape? ;_; </title>
<link>https://mltshp.com/p/1Q2X9</link>
...
</item>

After

<item>
<title> Why so sad, Netscape? ;_; </title>
<link>https://mltshp.com/p/1Q2VL</link>
...
</item>
bradchoate commented 5 months ago

Ah, sorry. This was the incorrect handler. It should be applied to handlers/account.py. Something like (added just after sharedfiles is assigned):

if user_name == options.best_of_user_name:
   sharedfiles = map(lambda sf: sf.original(), sharedfiles)
dphiffer commented 5 months ago

Ahh yes that makes sense. I've made a follow-up PR here: https://github.com/MLTSHP/mltshp/pull/763