Add tag functionality to posts and implement Tags screen

This commit is contained in:
Adolfo Reyna
2025-02-28 00:21:00 -05:00
parent f5c7ff38dd
commit 8cdcfefa0d
6 changed files with 177 additions and 34 deletions

3
API.js
View File

@@ -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);