eaf4e23266
When a user had hidden torrents, they were still listed on his user page even if it's not the actual user who is viewing it. That's why I added a new function for searching which filter out hidden torrents. Now when a user go to his own page (or a moderator), he can see all his torrents. However if another person visit the page, only non hidden torrents will be listed. I added the hidden parameter in ES database, it permits also to use the search instead of SQL when listing torrents on the user page. Less load time, go with the idea that we should use ES everywhere when needed. |
||
---|---|---|
.. | ||
categories | ||
crypto | ||
feeds | ||
filelist | ||
log | ||
messages | ||
metainfo | ||
modelHelper | ||
publicSettings | ||
search | ||
signals | ||
timeHelper | ||
torrentLanguages | ||
format.go | ||
magnet.go | ||
markdown.go | ||
safe.go | ||
util_test.go |