nodebb-plugin-simple-contact 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js CHANGED
@@ -228,17 +228,18 @@ async function replyToContact(req, res) {
228
228
  }
229
229
 
230
230
  try {
231
- const htmlContent = content.replace(/\n/g, '<br>');
231
+ const rawHtml = content.replace(/\n/g, '<br>');
232
+ const htmlContent = '<div dir="rtl" style="direction: rtl; text-align: right; font-family: Arial, sans-serif;">' + rawHtml + '</div>';
232
233
 
233
234
  await emailer.sendToEmail('notification', email, 'he', {
234
235
  subject: subject || 'תשובה לפנייתך בצור קשר',
235
- username: email,
236
+ username: ' ',
236
237
 
237
238
  notification: {
238
239
  type: 'contact-reply',
239
240
  bodyShort: subject || 'תשובה לפנייה',
240
241
  bodyLong: htmlContent,
241
- path: '/'
242
+ path: null
242
243
  },
243
244
 
244
245
  body: htmlContent,
@@ -246,10 +247,6 @@ async function replyToContact(req, res) {
246
247
  intro: 'קיבלת תשובה חדשה לפנייתך:'
247
248
  });
248
249
 
249
- if (original_id) {
250
- await db.setObjectField('contact-request:' + original_id, 'handled', true);
251
- }
252
-
253
250
  res.json({ success: true });
254
251
  } catch (err) {
255
252
  console.error(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-simple-contact",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "תוסף טופס צור קשר עם התראות למנהלים וניהול פניות",
5
5
  "main": "library.js",
6
6
  "nbbpm": {
@@ -316,12 +316,11 @@
316
316
  email: email,
317
317
  subject: subject,
318
318
  content: content,
319
- original_id: id,
320
319
  _csrf: config.csrf_token
321
320
  })
322
321
  .done(function(data) {
323
322
  $('#emailReplyModal').modal('hide');
324
- showMessage('success', 'המייל נשלח בהצלחה והפנייה סומנה כטופלה');
323
+ showMessage('success', 'המייל נשלח בהצלחה.');
325
324
  setTimeout(function() { ajaxify.refresh(); }, 1000);
326
325
  })
327
326
  .fail(function(xhr) {