Commit 0e2ede42 authored by zauberstuhl's avatar zauberstuhl

Add EntityLike to AuthorSignature

related to ganggo#3
parent 73ca2721
......@@ -173,6 +173,14 @@ func AuthorSignature(data interface{}, privKey string) (string, error) {
case *EntityComment:
text = entity.DiasporaHandle+";"+entity.Guid+";"+
entity.ParentGuid+";"+entity.Text
case *EntityLike:
positive := "false"
if entity.Positive {
positive = "true"
}
// positive guid parent_guid parent_type author
text = positive+";"+entity.Guid+";"+entity.ParentGuid+
";"+entity.TargetType+";"+entity.DiasporaHandle
case *EntityStatusMessage:
// parent author signature
//timeLayout := "2006-01-02T15:04:05-07:00"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment