Commit 97750938 authored by Mark Harding's avatar Mark Harding

(feat): hashtags now work with search

parent a62ba707
No related merge requests found
Pipeline #65754148 (#488) running with stages
......@@ -214,7 +214,7 @@ export class NewsfeedSortedComponent implements OnInit, OnDestroy {
const hashtags = this.hashtag ? encodeURIComponent(this.hashtag) : '';
const period = this.period || '';
const all = this.all ? '1' : '';
const query = this.query || '';
const query = this.query ? encodeURIComponent(this.query) : '';
const nsfw = (this.newsfeedService.nsfw || []).join(',');
const { entities, next } = await this.feedsService.get({
......@@ -263,7 +263,7 @@ export class NewsfeedSortedComponent implements OnInit, OnDestroy {
hashtags: this.hashtag ? [this.hashtag] : '',
period: this.period || '',
all: this.all ? 1 : '',
query: this.query || '',
query: this.query ? encodeURIComponent(this.query) : '',
nsfw: this.newsfeedService.nsfw,
}, {
cache: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment