summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-01-11 09:33:01 +0100
committerMaxence Lange <maxence@artificial-owl.com>2019-02-05 15:10:24 -0100
commit8c0c0bc5a3f20f86002be8cab6030f5cfab8af12 (patch)
treee2c366176aa3266fcdc89c8abbcd0c8660cd8280 /lib/Service
parent5ddf8ee7c21d58db4a3d19edeeab7f28459da3be (diff)
Fix setting hashtags when creating a post
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/NoteService.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Service/NoteService.php b/lib/Service/NoteService.php
index 78508dec..a4d432a3 100644
--- a/lib/Service/NoteService.php
+++ b/lib/Service/NoteService.php
@@ -258,6 +258,7 @@ class NoteService {
* @param array $hashtags
*/
public function addHashtags(Note $note, array $hashtags) {
+ $note->setHashtags($hashtags);
foreach ($hashtags as $hashtag) {
$this->addHashtag($note, $hashtag);
}