1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Correctly set filter referrer everywhere

This commit is contained in:
Cadence Ember 2021-05-12 00:43:53 +12:00
parent db7ccabb3b
commit cebc4331bc
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
4 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@ mixin video_list_item(className, video, instanceOrigin, options = {})
.thumbnail__options-container
.thumbnail__options-list
- const paramsBase = {}
- if (url) paramsBase.referrer = url.pathname + (url.search && "?" + url.search)
- if (url) paramsBase.referrer = url.pathname + url.search
a(href=`/filters?${new URLSearchParams({"channel-id": video.authorId, label: video.author, ...paramsBase})}`).menu-look Hide this channel
a(href=`/filters?${new URLSearchParams({title: video.title, ...paramsBase})}`).menu-look Hide by title
a(href="/filters").menu-look Edit all filters