You can try this:
1.
function [{databaseOwner}].[{objectQualifier}message_getthanksinfo]
has 2 variants
replace #IFSRVVER>8# for #IFSRVVER>10# and #IFSRVVER=8# for #IFSRVVER>7#
and update it. Report results. If it doesn't help, revert changes and go to step 2.
2.
replace it in the sp
ThanksInfo = ([{databaseOwner}].[{objectQualifier}message_getthanksinfo](a.MessageID, @ShowThanksDate)),
for
ThanksInfo = null,
and disable thanks feature in hosts settings