2021-02-20 14:03:54 +00:00
|
|
|
|
package shroom
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"log"
|
|
|
|
|
|
|
|
|
|
"github.com/bouncepaw/mycorrhiza/hyphae"
|
|
|
|
|
"github.com/bouncepaw/mycorrhiza/user"
|
|
|
|
|
)
|
|
|
|
|
|
2022-02-19 08:26:38 +00:00
|
|
|
|
func rejectDeleteLog(h hyphae.Hypha, u *user.User, errmsg string) {
|
2022-02-03 21:47:36 +00:00
|
|
|
|
log.Printf("Reject delete ‘%s’ by @%s: %s\n", h.CanonicalName(), u.Name, errmsg)
|
2021-02-20 14:03:54 +00:00
|
|
|
|
}
|
2022-02-19 08:26:38 +00:00
|
|
|
|
func rejectRenameLog(h hyphae.Hypha, u *user.User, errmsg string) {
|
2022-02-03 21:47:36 +00:00
|
|
|
|
log.Printf("Reject rename ‘%s’ by @%s: %s\n", h.CanonicalName(), u.Name, errmsg)
|
2021-02-20 14:03:54 +00:00
|
|
|
|
}
|
2022-02-26 07:33:09 +00:00
|
|
|
|
func rejectRemoveMediaLog(h hyphae.Hypha, u *user.User, errmsg string) {
|
|
|
|
|
log.Printf("Reject remove media ‘%s’ by @%s: %s\n", h.CanonicalName(), u.Name, errmsg)
|
2021-02-20 14:03:54 +00:00
|
|
|
|
}
|
2022-02-19 08:26:38 +00:00
|
|
|
|
func rejectEditLog(h hyphae.Hypha, u *user.User, errmsg string) {
|
2022-02-03 21:47:36 +00:00
|
|
|
|
log.Printf("Reject edit ‘%s’ by @%s: %s\n", h.CanonicalName(), u.Name, errmsg)
|
2021-02-20 14:03:54 +00:00
|
|
|
|
}
|
2022-02-26 07:33:09 +00:00
|
|
|
|
func rejectUploadMediaLog(h hyphae.Hypha, u *user.User, errmsg string) {
|
|
|
|
|
log.Printf("Reject upload media ‘%s’ by @%s: %s\n", h.CanonicalName(), u.Name, errmsg)
|
2021-02-20 14:03:54 +00:00
|
|
|
|
}
|