Add tag functionality to posts and implement Tags screen
This commit is contained in:
3
API.js
3
API.js
@@ -143,6 +143,9 @@ const API = {
|
||||
if (userid) return getCall("/post/usr/" + userid);
|
||||
return getCall("/post/");
|
||||
},
|
||||
getPostsByTag(tag) {
|
||||
return getCall("/post/tag/" + tag);
|
||||
},
|
||||
getPostsWithTag(userid, tag = "images") {
|
||||
if (userid) return getCall("/post/usr/" + userid + "/" + tag);
|
||||
return getCall("/post/" + tag);
|
||||
|
||||
Reference in New Issue
Block a user