Skip to content

Commit

Permalink
Allow download disabled content in RSS (#3145)
Browse files Browse the repository at this point in the history
* Don't filter `c:disable-download` from RSS feed

* Update tag names

---------

Co-authored-by: miko <sauce47@posteo.net>
  • Loading branch information
keikari and miko authored Sep 4, 2024
1 parent 3bd3250 commit e61405b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
5 changes: 5 additions & 0 deletions static/app-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2941,6 +2941,11 @@
"or %extraBytes% characters of text.": "or %extraBytes% characters of text.",
"or 1 character of text.": "or 1 character of text.",
"Failed to fetch memberships": "Failed to fetch memberships",
"Hide Download Button": "Hide Download Button",
"Disable Likes/Dislikes - Content": "Disable Likes/Dislikes - Content",
"Disable Likes/Dislikes - Comments": "Disable Likes/Dislikes - Comments",
"Disable Dislikes - Content": "Disable Dislikes - Content",
"Disable Dislikes - Comments": "Disable Dislikes - Comments",

"--end--": "--end--"
}
18 changes: 17 additions & 1 deletion ui/component/tagsSearch/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ import {
RENTAL_TAG,
RENTAL_TAG_OLD,
PURCHASE_TAG_OLD,
DISABLE_SUPPORT_TAG,
DISABLE_DOWNLOAD_BUTTON_TAG,
DISABLE_REACTIONS_VIDEO_TAG,
DISABLE_REACTIONS_COMMENTS_TAG,
DISABLE_SLIMES_VIDEO_TAG,
DISABLE_SLIMES_COMMENTS_TAG,
} from 'constants/tags';
import { removeInternalTags } from 'util/tags';

Expand Down Expand Up @@ -109,8 +115,18 @@ export default function TagsSearch(props: Props) {
const controlTagLabels = {};
CONTROL_TAGS.map((t) => {
let label;
if (t === 'disable-support') {
if (t === DISABLE_SUPPORT_TAG) {
label = __('Disable Tipping and Boosting');
} else if (t === DISABLE_DOWNLOAD_BUTTON_TAG) {
label = __('Hide Download Button');
} else if (t === DISABLE_REACTIONS_VIDEO_TAG) {
label = __('Disable Likes/Dislikes - Content');
} else if (t === DISABLE_REACTIONS_COMMENTS_TAG) {
label = __('Disable Likes/Dislikes - Comments');
} else if (t === DISABLE_SLIMES_VIDEO_TAG) {
label = __('Disable Dislikes - Content');
} else if (t === DISABLE_SLIMES_COMMENTS_TAG) {
label = __('Disable Dislikes - Comments');
} else {
label = __(
t
Expand Down
2 changes: 1 addition & 1 deletion web/src/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function getChannelClaim(name, claimId) {

async function getClaimsFromChannel(claimId, count) {
// had to hardcode because of imports vs require (requires larger refactor?)
const restrictedTags = ['c:disable-download', 'c:members-only', 'c:purchase', 'c:rental', 'c:unlisted'];
const restrictedTags = ['c:members-only', 'c:purchase', 'c:rental', 'c:unlisted'];
const options = {
channel_ids: [claimId],
page_size: count,
Expand Down

0 comments on commit e61405b

Please sign in to comment.