Commit 7bc221b1 authored by Jason Salyers's avatar Jason Salyers
Browse files

Merge branch 'jsalyers-exclude-observer-from-post-header' into 'develop'

Jsalyers exclude observer from post header

See merge request !176
parents 3fe094bc f120b25a
......@@ -8,12 +8,6 @@ import {
} from 'app/utils/CrossPosts';
export async function callBridge(method, params) {
console.log(
'call bridge',
method,
params && JSON.stringify(params).substring(0, 200)
);
// [JES] Hivemind throws an exception if you call for my/[trending/payouts/new/etc] with a null observer
// so just delete the 'my' tag if there is no observer specified
if (
......@@ -30,10 +24,17 @@ export async function callBridge(method, params) {
method !== 'account_notifications' &&
method !== 'unread_notifications' &&
method !== 'list_all_subscriptions' &&
method !== 'get_post_header' &&
(params.observer === null || params.observer === undefined)
)
params.observer = $STM_Config.default_observer;
console.log(
'call bridge',
method,
params && JSON.stringify(params).substring(0, 200)
);
return new Promise(function(resolve, reject) {
api.call('bridge.' + method, params, function(err, data) {
if (err) {
......
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