Tumblr/Bluesky: Store the subscribed feed/tag
This commit is contained in:
parent
187ba8383d
commit
af31a988aa
2 changed files with 23 additions and 5 deletions
|
@ -734,6 +734,9 @@ function tumblr_fetch_tags(int $uid)
|
|||
$id = tumblr_process_post($post, $uid, Item::PR_TAG);
|
||||
if (!empty($id)) {
|
||||
Logger::debug('Tag post imported', ['tag' => $tag, 'id' => $id]);
|
||||
$post = Post::selectFirst(['uri-id'], ['id' => $id]);
|
||||
$stored = Post\Category::storeFileByURIId($post['uri-id'], $uid, Post\Category::SUBCRIPTION, $tag);
|
||||
Logger::debug('Stored tag subscription for user', ['uri-id' => $post['uri-id'], 'uid' => $uid, 'tag' => $tag, 'stored' => $stored]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue