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:
parent
07f76d2a6f
commit
9f3e45c113
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -321,6 +321,7 @@ projectOfferTicketF
|
|||
, ticketAuthorRemoteOffer = ractid
|
||||
}
|
||||
insertMany_ $ map (TicketDependency tid) deps
|
||||
insert_ $ RemoteFollow raidAuthor fsid False
|
||||
return $ Just (ractid, next, obiidAccept, docAccept)
|
||||
|
||||
deliverLocal
|
||||
|
|
Loading…
Reference in a new issue