mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-29 02:24:52 +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
|
, ticketAuthorLocalOffer = obiid
|
||||||
}
|
}
|
||||||
insertMany_ $ map (TicketDependency tid) tidsDeps
|
insertMany_ $ map (TicketDependency tid) tidsDeps
|
||||||
|
insert_ $ Follow pidAuthor fsid False
|
||||||
publishAccept pidAuthor sid jid fsid luOffer num obiid doc = do
|
publishAccept pidAuthor sid jid fsid luOffer num obiid doc = do
|
||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
remotesHttp <- do
|
remotesHttp <- do
|
||||||
|
|
|
@ -321,6 +321,7 @@ projectOfferTicketF
|
||||||
, ticketAuthorRemoteOffer = ractid
|
, ticketAuthorRemoteOffer = ractid
|
||||||
}
|
}
|
||||||
insertMany_ $ map (TicketDependency tid) deps
|
insertMany_ $ map (TicketDependency tid) deps
|
||||||
|
insert_ $ RemoteFollow raidAuthor fsid False
|
||||||
return $ Just (ractid, next, obiidAccept, docAccept)
|
return $ Just (ractid, next, obiidAccept, docAccept)
|
||||||
|
|
||||||
deliverLocal
|
deliverLocal
|
||||||
|
|
Loading…
Reference in a new issue