1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 18:24:51 +09:00

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