mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
No need for JSON actually, because there's a source column we can use.
This commit is contained in:
@@ -65,13 +65,7 @@ DatabaseCommand_ShareTrack::exec( DatabaseImpl* dbi )
|
|||||||
if ( myDbid != m_recipient || sourceDbid == m_recipient )
|
if ( myDbid != m_recipient || sourceDbid == m_recipient )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//we store the comment field as JSON: { sender: dbid, unlistened: bool }
|
setComment( "true" /*unlistened*/ );
|
||||||
QVariantMap comment;
|
|
||||||
comment.insert( "sender", sourceDbid );
|
|
||||||
comment.insert( "unlistened", true );
|
|
||||||
|
|
||||||
QJson::Serializer serializer;
|
|
||||||
setComment( serializer.serialize( comment ) );
|
|
||||||
|
|
||||||
DatabaseCommand_SocialAction::exec( dbi );
|
DatabaseCommand_SocialAction::exec( dbi );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user