When Accepting an Offer{Ticket}, automatically add author as ticket follower

This commit is contained in:
fr33domlover 2019-06-26 01:37:29 +00:00
parent 07f76d2a6f
commit 9f3e45c113
2 changed files with 2 additions and 0 deletions

View file

@ -672,6 +672,7 @@ offerTicketC shrUser summary audience offer@(Offer ticket uTarget) = runExceptT
, ticketAuthorLocalOffer = obiid
}
insertMany_ $ map (TicketDependency tid) tidsDeps
insert_ $ Follow pidAuthor fsid False
publishAccept pidAuthor sid jid fsid luOffer num obiid doc = do
now <- liftIO getCurrentTime
remotesHttp <- do

View file

@ -321,6 +321,7 @@ projectOfferTicketF
, ticketAuthorRemoteOffer = ractid
}
insertMany_ $ map (TicketDependency tid) deps
insert_ $ RemoteFollow raidAuthor fsid False
return $ Just (ractid, next, obiidAccept, docAccept)
deliverLocal